package com.feihao.zhou.demoVolatileUseSynchronized;

public class VolatileDemoTest {
    public static void main(String[] args) {

        Money money = new Money(10000);
        MyThread1 myThread1 = new MyThread1(money);
        MyThread2 myThread2 = new MyThread2(money);

        new Thread(myThread1).start();
        new Thread(myThread2).start();
    }
}
